import Vue from 'vue'
import App from './App'

/* 引入分割线全局组件 */
import divider from './components/common/divider.vue'
Vue.component("divider",divider)

import noThing from './components/common/no-thing.vue'
Vue.component("no-thing",noThing)


// 后退一步
Vue.prototype.$back=(delta=1)=>{
	// #ifdef APP-PLUS
	uni.navigateBack({
		delta
	})
	// #endif
	// #ifdef H5
	window.history.back(delta)
	// #endif
}

// 路由跳转
Vue.prototype.$go=(url)=>{
	uni.navigateTo({
		url
	})
}


Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
